import { get, post,del } from '../../utils/request';

export function collectionListApi(obj) {
    return get('/member/favotites', obj);
}
export function addCartOrBuy(obj) {
    return post('cart/', obj);
}

// 收藏与取消收藏
export function favgoodsApi(obj) {
    return post('store/fav/goods', obj);
}
//获取收藏商品我的分类
export function classFavApi() {
    return get('/member/favorites/goods/class');
}
//获取收藏分类下的对应商品
export function classGoodApi(obj) {
    return get(`/member/favorites/goods/${obj.gcId}`,obj);
}
//我的收藏-批量取消
export function CancelGoodsApi(obj) {
    return del(`/store/fav/goodsId`,obj);
}
